package com.system.mapper;

import com.system.entity.po.DocumentDo;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface DocumentMapper {

    @Insert("insert into t_document(id,type,content) values (#{id},#{type},#{content})")
    void insert(DocumentDo documentDo);

    @Select("select * from t_document")
    List<DocumentDo> selectList();
}
